﻿using Nancy.Json;
using NewLife.Serialization.Json;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection.Metadata;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using UtilsBase;

namespace UtilsCache
{
    public static class UtilAppsettingCache
    {
        public static string getSetting(string key)
        {
            string val = UtilMemoryCacheHelper.get<string>(key);
            if (string.IsNullOrEmpty(val))
            {
                val = UtilsAppsetting.GetSettings(key);
                UtilMemoryCacheHelper.set(key, val);
            }

            return val;

        }

    }

}
